import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';

export class AttachmentConfirmDto {
  @ApiProperty({
    description: 'URL of the file uploaded to OBS',
    example: 'https://bucket-name.obs.region.example.com/uploads/1234567890-file.pdf',
  })
  @IsNotEmpty()
  @IsString()
  fileUrl: string;

  @ApiProperty({
    description: 'Original file name',
    example: 'my-document.pdf',
  })
  @IsNotEmpty()
  @IsString()
  filename: string;
}
